package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * Player rename event
 * 
 * 
 * @author (h0t@_G0|i
 *
 */
public class PlyrRenameEvtCapImpl
    extends EvtCap
{

    public PlyrRenameEvtCapImpl(List<String> list)
    {
        int i = list.size();
        if(i < 5)
        {
            validEvt = false;
            return;
        }
        validEvt = true;
        timeStamp = Double.valueOf(list.get(0)).doubleValue();
        playerName = list.get(3);
        if(i < 6)
        {
            newName = "";
            playerId = Integer.parseInt(list.get(4));
        } else
        {
            newName = list.get(4);
            playerId = Integer.parseInt(list.get(5));
        }
    }

   
    public String playerName;
    public String newName;
    public int playerId;
}
